home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Risc World 5
/
Risc World 5.iso
/
SOFTWARE
/
Issue5
/
PD
/
DIRSYNC
/
LegalStuff
/
gnudiff
/
GMakefile
< prev
next >
Wrap
Makefile
|
2002-11-24
|
1KB
|
69 lines
OPTS = -DHAVE_CONFIG_H -DCHAR_BIT=8 -DUSING_POSIX -DVOID=void\
-DWIFEXITED -DWEXITSTATUS\
"-DDEFAULT_DIFF_PROGRAM=\"diff\""\
"-DDEFAULT_EDITOR_PROGRAM=\"ed\""\
"-DDIFF_PROGRAM=\"diff\""\
"-DPR_PROGRAM=\"pr\""\
"-DGNU_PACKAGE=\"GNU diffutils\"" "-DVERSION=\"2.7\""
CC = gcc
CCflags = -c -O2 -mstubs -mthrowback -isystem ^.lib -isystem @
Link = drlink
Linkflags = -nounused -e ^.lib.libpatch -o
# LIBS = gcc:o.libgcc ^.lib.o.gststubs ^.lib.o.libgnu
LIBS = gcc:o.libgcc C:o.stubs ^.lib.o.libgnu
# Object files
OBJS = o.version o.freesoft
cmp_Objs = o.cmp $(OBJS)
diff_Objs = o.diff o.analyze o.dir o.io o.util o.context o.ed o.ifdef o.normal o.side $(OBJS)
diff3_Objs = o.diff3 $(OBJS)
sdiff_Objs = o.sdiff $(OBJS)
# Templates
c.% o.%:
$(CC) $(CCflags) $(OPTS) $< -o $@
# Main target
All: cmp diff diff3 sdiff
cmp: $(cmp_Objs) $(LIBS)
$(Link) $(Linkflags) cmp $(cmp_Objs) $(LIBS)
diff: $(diff_Objs) $(LIBS)
$(Link) $(Linkflags) diff $(diff_Objs) $(LIBS)
diff3: $(diff3_Objs) $(LIBS)
$(Link) $(Linkflags) diff3 $(diff3_Objs) $(LIBS)
sdiff: $(sdiff_Objs) $(LIBS)
$(Link) $(Linkflags) sdiff $(sdiff_Objs) $(LIBS)
Clean:
ifthere o.* then wipe o.* ~cfr~v
remove cmp
remove diff
remove diff3
remove sdiff
# Dependencies:
o.analyze: c.analyze
o.cmp: c.cmp
o.context: c.context
o.diff: c.diff
o.diff3: c.diff3
o.dir: c.dir
o.ed: c.ed
o.ifdef: c.ifdef
o.io: c.io
o.normal: c.normal
o.sdiff: c.sdiff
o.side: c.side
o.util: c.util
o.version: c.version